import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router';
import {createPinia} from "pinia";
import * as ELIcons from "@element-plus/icons-vue"
import 'element-plus/theme-chalk/el-message.css'
import 'element-plus/theme-chalk/el-loading.css'

const app = createApp(App);

for (const name in ELIcons){
    app.component(name, (ELIcons as any)[name])
}

app.use(router)
    .use(createPinia())
    .mount('#app')
